﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="import.aspx.cs" Inherits="import" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Williams Project Import Data</title>
</head>
<body>
    <form method="post" enctype="multipart/form-data" runat="server">
    <asp:PlaceHolder ID="placeholder" Visible="false" runat="server" />
    
    <p><asp:Label ID="message" runat="server" ForeColor="Red" />
    <asp:Label ID="successmsg" runat="server" /></p>
    <table>
        <tr><td>Password:</td>
            <td><asp:TextBox ID="password" runat="server" TextMode="Password" /></td></tr>
<%  HtmlTextWriter tw = new HtmlTextWriter(Response.Output);
    for (int i = 0; i < files.Count; i++)
    {
        FileDefinition fd = files[i];
%>
        <tr><td><%= fd.Description %>:</td>
            <td><% uploads[i].RenderControl(tw); %></td>
            <td><% uploaderrors[i].RenderControl(tw); %></td></tr>
<%  } %>
        <tr><td></td>
            <td><asp:Button ID="submit" runat="server" Text="Upload Data" /></td></tr>
    </table>
    <p><span style="color: Red; font-weight: bold;">WARNING:</span> This will replace any duplicate
        data in the database.  Please make a backup in SQL Management Studio if necessary.</p>        
    </form>
</body>
</html>
